<?php 
	//error_reporting(0);
	session_start();
	//ini_set('display_errors', 1);
	include_once "./moduleLoader.inc";
	global $currPage;
	$currPage = isset($_GET["pg"]) ? $_GET["pg"] : "";
	loadCurrentModule($currPage);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!--head section-->
<head>
	<meta http-equiv="CONTENT-TYPE" content="TEXT/HTML; CHARSET=utf-8"/>
	<title><?php print $title; ?></title>
	<meta name="ROBOTS" content="INDEX, FOLLOW"/>
	<meta name="Description" content="<?php print $description ?>"/>
    <style type="text/css" media="screen">
        @import url("<?php echo $G_HOME ?>/style/tools.css");
        @import url("<?php echo $G_HOME ?>/style/typo.css");
        @import url("<?php echo $G_HOME ?>/style/forms.css");
        @import url("<?php echo $G_HOME ?>/style/<?php print $pageLayout; ?>.css");        @import url("<?php echo $G_HOME ?>/style/layout.css");
    </style>
	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $G_HOME ?>/site/style/general.css"></link>
	<script type="text/javascript" src="<?php echo $G_HOME ?>/script/jquery-1.3.2.min.js"></script>
	<!--[if lt IE 8]>
	<script src="<?php echo $G_HOME ?>/script/IE8.js" type="text/javascript"></script> 
	<![endif]-->
</head>
<body>
	<div id="page">
		<div id="header" class="clearfix">
			<div id="login"><?php if(isset($loginBox)) print $loginBox ?></div>
			<div id="search"><?php if (isset($G_SEARCH)) print $G_SEARCH; ?></div>
			<?php print $G_HEADER ?>
			<hr />
		</div><!-- end header -->
		<div id="content" class="clearfix">
			<div id="main">
				<div id="breadcrumbs">
					<?php print $breadcrumbs;?>
				</div>
				<?php print $content;?>
				<hr />
			</div>
			<div id="sub">
				<?php if (isset($subContent)) print $subContent; ?>
				<hr />
			</div>
			<div id="local">
				<?php if (isset($secondaryNavigation)) print $secondaryNavigation; ?>
				<hr />
			</div>
			<div id="nav">
				<?php print $mainNav?>
				<hr />
			</div>
		</div><!-- end content -->
		<div id="footer" class="clearfix">
			<?php print $G_FOOTER ?>
		</div><!-- end footer -->
	</div><!-- end page -->
	<?php print $analytics ?>
</body>
</html>